package itheima.com.zuoye.d04;

public class  Dog   extends Animal implements Swim{
//    行为:
//    吃饭(啃骨头)和 游泳(狗刨)

    @Override
    public void eat() {
        System.out.println("啃骨头");
    }

    @Override
    public void swim() {
        System.out.println("狗刨");
    }

    public Dog(int age) {
        super(age);
    }

    public Dog() {
    }
}
